package com.nervenets.web.redis.domain.global;

import com.nervenets.web.enumeration.OperateType;
import com.nervenets.web.enumeration.Time;
import com.nervenets.web.enumeration.WealthType;
import com.nervenets.web.redis.RedisSetDomain;

/**
 * 操作类型统计
 * Created by Joe on 2018/1/12.
 */
public class GlobalOperateTypeCount extends RedisSetDomain {
    private OperateType operateType;
    private WealthType wealthType;
    private Time time;
    private long value;
    private int dateStamp;

    @Override
    public String getField() {
        return wealthType.getName().toUpperCase() + operateType.getName().toUpperCase() + time.getName().toUpperCase();
    }

    @Override
    public String getKey() {
        return "GLOBAL_OPERATE_TYPE_COUNT_" + dateStamp;
    }

    public OperateType getOperateType() {
        return operateType;
    }

    public void setOperateType(OperateType operateType) {
        this.operateType = operateType;
    }

    public long getValue() {
        return value;
    }

    public void setValue(long value) {
        this.value = value;
    }

    public int getDateStamp() {
        return dateStamp;
    }

    public void setDateStamp(int dateStamp) {
        this.dateStamp = dateStamp;
    }

    public Time getTime() {
        return time;
    }

    public void setTime(Time time) {
        this.time = time;
    }

    public WealthType getWealthType() {
        return wealthType;
    }

    public void setWealthType(WealthType wealthType) {
        this.wealthType = wealthType;
    }

}
